package com.da.auth.service;

import com.da.common.entity.PageResult;
import com.da.common.exception.BusinessException;
import com.da.common.exception.ParameterException;
import com.da.auth.entity.DailyUsers;
import com.da.auth.entity.dto.DailyUsersDTO;

import java.sql.SQLDataException;
import java.util.List;
import java.util.concurrent.Future;

/**
 * @Author: hyacinth
 * @CreateTime: 2025-01-10
 * @Version: 1.0
 */

public interface DailyUserService {
    PageResult<DailyUsers> getPageByAllUsers(int pageNum, int pageSize);

    DailyUsers getUserById(String id) throws SQLDataException;

    Boolean deleteUser(String id) throws BusinessException;

    Boolean createUser(DailyUsersDTO dailyUsersDTO) throws Exception;

    Boolean updateUser(DailyUsersDTO dailyUsersDTO) throws ParameterException, BusinessException;

    Future<Boolean> batchAddUser(List<DailyUsers> dailyUsersList) throws BusinessException;

    Boolean batchDeletedUser(List<String> dailyUsersIdList);


}

